home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
1601_700
/
DISK1610
/
DISK1610.ZIP
/
AINSTALL.BAT
next >
Wrap
DOS Batch File
|
1989-03-22
|
1KB
|
40 lines
echo off
if "==%1" goto PROMPT
for %%f in (A:,a:,B:,b:,C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,Y:,y:) do if %1.==%%f. goto BEGIN
for %%f in (I:,i:,J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Z:,z:) do if %1.==%%f. goto BEGIN
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:) do if %1.==%%f. goto BEGIN
goto UNKNOWN
:BEGIN
if %1.==A:. goto UNKNOWN
if %1.==a:. goto UNKNOWN
if exist a:scr.arc goto PROCEED
echo Insert SCR Disk into drive A.
pause
goto BEGIN
:PROCEED
copy scr.bat %1 > nul
%1
cd\
mkdir %scr
cd\scr
a:pkxarc -r a:scr % > nul
echo SCR has been successfully installed.
goto FINISH
:PROMPT
echo
echo Enter "AINSTALL <drive:>" to install SCR.
echo Here "<drive:>" is the letter of the hard disk on
echo which SCR will be placed. For example, if
echo your hard drive is drive 'C:' you would type:
echo
echo AINSTALL C:
echo
echo Install cancelled.
goto FINISH
:UNKNOWN
echo Invalid drive specified. Install cancelled.
goto PROMPT
:FINISH
cd\